import {
  DashboardOutlined,
  MessageOutlined,
  MailOutlined,
  UserOutlined
} from '@ant-design/icons'

import Login from '../views/login'
import Nofound from '../views/no-found'
import Dashboard from '../views/dashboard'
import Message from '../views/message'
import User from '../views/user'
import Notification from '../views/notification'

const constantRoutes = [
  {
    path: '/login',
    component: Login
  },
  {
    path: '/404',
    component: Nofound
  }
]

const asyncRoutes = [
  {
    path: '/admin/dashboard',
    component: Dashboard,
    meta: {
      title: '仪表盘',
      icon: DashboardOutlined
    }
  },
  {
    path: '/admin/message',
    component: Message,
    meta: {
      title: '登录信息',
      icon: MessageOutlined
    }
  },
  {
    path: '/admin/user',
    component: User,
    meta: {
      title: '个人中心',
      icon: UserOutlined
    }
  },
  {
    path: '/admin/notification',
    component: Notification,
    meta: {
      title: '消息通知',
      icon: MailOutlined
    }
  }
]

export {
  asyncRoutes,
  constantRoutes
}